import request from '@/utils/request.js';

export function selectAllFaculty(){
    return request({
        url:'/faculty/selectAllFaculty',
        method:'get',
    })
}
export function selectFacultyList(query){
    return request({
        url:'/faculty/selectFacultyList',
        method:'get',
        params:query
    })
}
export function deleteFaculty(id){
    return request({
        url:'/faculty/delete/'+id,
        method:'delete'
    })
}
export function deleteTypes(data){
    return request({
        url: '/faculty/delete',
        method: 'post',
        params: {
            ids: data
        }
    })
}
/**
 * 
 * 更新用户信息
 */
 export function updateFaculty(data){
    return request({
        url:'/faculty/updateFaculty',
        method:'put',
        data:data
    })
}
export function addFaculty(faculty){
    return request({
        url:'/faculty/addFaculty',
        method:'post',
        data:faculty,
    })
}